import {useRecoilState, useRecoilValue} from "recoil"
import {charCountState, textState} from "../../models/user";

const Home=()=>{
    const [state,setSate] = useRecoilState<{date?:string}>(textState);
    const count = useRecoilValue(charCountState);
    console.log(state,count)
    return <div>
        <div>home</div>
        <div>{state?.date}</div>
    </div>
}
export default Home